import { ref } from "vue";

const useDelay = (time = 500) => {
  const state = ref(false);

  const setRight = () => {
    state.value = true;
  };

  setTimeout(() => {
    setRight();
  }, time);

  return {
    state,
    setRight,
  };
};

export default useDelay;
